package com.tony.thread;

import com.tony.api.ApiVoteAll;

public class ExcuteThread implements Runnable{


    public int threadNum;

    private String username;
    private String password;
    private int itemId;
    private String dPath;


    private long minId;
    private long maxId;

    @Override
    public void run() {
        ApiVoteAll apiVote=new ApiVoteAll();
        apiVote.setThreadNum(threadNum);
        apiVote.setUsername(username);
        apiVote.setPassword(password);
        apiVote.setItemId(itemId);
        apiVote.setdPath(dPath);
        apiVote.setMaxId(maxId);
        apiVote.setMinId(minId);
        //apiVote.vote();
        apiVote.voteTest();
    }

    public long getMinId() {
        return minId;
    }

    public void setMinId(long minId) {
        this.minId = minId;
    }

    public long getMaxId() {
        return maxId;
    }

    public void setMaxId(long maxId) {
        this.maxId = maxId;
    }

    public int getThreadNum() {
        return threadNum;
    }

    public void setThreadNum(int threadNum) {
        this.threadNum = threadNum;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getItemId() {
        return itemId;
    }

    public void setItemId(int itemId) {
        this.itemId = itemId;
    }

    public String getdPath() {
        return dPath;
    }

    public void setdPath(String dPath) {
        this.dPath = dPath;
    }
}
